package com.scgl.process.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.process.mapper.ScglLogMapper;
import com.scgl.process.domain.ScglLog;
import com.scgl.process.service.IScglLogService;

/**
 * 生产日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-04
 */
@Service
public class ScglLogServiceImpl implements IScglLogService 
{
    @Autowired
    private ScglLogMapper scglLogMapper;

    /**
     * 查询生产日志
     * 
     * @param serial 生产日志主键
     * @return 生产日志
     */
    @Override
    public ScglLog selectScglLogBySerial(Long serial)
    {
        return scglLogMapper.selectScglLogBySerial(serial);
    }

    /**
     * 查询生产日志列表
     * 
     * @param scglLog 生产日志
     * @return 生产日志
     */
    @Override
    public List<ScglLog> selectScglLogList(ScglLog scglLog)
    {
        return scglLogMapper.selectScglLogList(scglLog);
    }

    /**
     * 新增生产日志
     * 
     * @param scglLog 生产日志
     * @return 结果
     */
    @Override
    public int insertScglLog(ScglLog scglLog)
    {
        return scglLogMapper.insertScglLog(scglLog);
    }

    /**
     * 修改生产日志
     * 
     * @param scglLog 生产日志
     * @return 结果
     */
    @Override
    public int updateScglLog(ScglLog scglLog)
    {
        return scglLogMapper.updateScglLog(scglLog);
    }

    /**
     * 批量删除生产日志
     * 
     * @param serials 需要删除的生产日志主键
     * @return 结果
     */
    @Override
    public int deleteScglLogBySerials(Long[] serials)
    {
        return scglLogMapper.deleteScglLogBySerials(serials);
    }

    /**
     * 删除生产日志信息
     * 
     * @param serial 生产日志主键
     * @return 结果
     */
    @Override
    public int deleteScglLogBySerial(Long serial)
    {
        return scglLogMapper.deleteScglLogBySerial(serial);
    }
}
